package com.gitee.wsl.jvm.okhttp.listener

import com.gitee.wsl.coroutines.api.Cancellable
import timber.log.Timber

fun interface ProgressListener: Cancellable {
     fun onProgress(totalReadBytes: Long, contentLength: Long)
     fun onError(s: String, s1: String) = Timber.e(s1)
     fun onSuccess() { }
     override fun cancel() {}
}